import request from '@/utils/request'
import FormatPackage from '@/utils/response-format-package'

export function getRechargeLogList(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/rechargeLog/list',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
export function rechargeRoomCard(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/player/rechargeRoomCard',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
export function rechargeGold(params = {}, defaultErrMsg = '') {
  return FormatPackage(
    request({
      url: '/player/rechargeGold',
      method: 'get',
      params
    }),
    defaultErrMsg
  )
}
